package com.ncst.backend.mapper;

import com.ncst.backend.domain.vo.RefundDrugVo;
import com.ncst.backend.domain.vo.RefundPatientVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RefundMapper {

    List<RefundPatientVo> searchPatient(@Param("caseNumber") String caseNumber,
                                        @Param("realName") String realName);

    List<RefundDrugVo> listRefundableDrugs(@Param("caseNumber") String caseNumber,
                                           @Param("realName") String realName);

    List<RefundDrugVo> lockItemsByIds(@Param("ids") List<Integer> ids);

    int updateStateToRefunded(@Param("ids") List<Integer> ids);
}